

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Aluno</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Aluno List</g:link></span>
        </div>
        <div class="body">
            <h1>Create Aluno</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${alunoInstance}">
            <div class="errors">
                <g:renderErrors bean="${alunoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="endereco">Endereco:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'endereco','errors')}">
                                    <input type="text" id="endereco" name="endereco" value="${fieldValue(bean:alunoInstance,field:'endereco')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cidade">Cidade:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'cidade','errors')}">
                                    <input type="text" id="cidade" name="cidade" value="${fieldValue(bean:alunoInstance,field:'cidade')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="estado">Estado:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'estado','errors')}">
                                    <g:select id="estado" name="estado" from="${alunoInstance.constraints.estado.inList}" value="${alunoInstance.estado}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cidadeDeOrigem">Cidade De Origem:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'cidadeDeOrigem','errors')}">
                                    <input type="text" id="cidadeDeOrigem" name="cidadeDeOrigem" value="${fieldValue(bean:alunoInstance,field:'cidadeDeOrigem')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="estadoDeOrigem">Estado De Origem:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'estadoDeOrigem','errors')}">
                                    <g:select id="estadoDeOrigem" name="estadoDeOrigem" from="${alunoInstance.constraints.estadoDeOrigem.inList}" value="${alunoInstance.estadoDeOrigem}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="telefone">Telefone:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'telefone','errors')}">
                                    <input type="text" id="telefone" name="telefone" value="${fieldValue(bean:alunoInstance,field:'telefone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="celular">Celular:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'celular','errors')}">
                                    <input type="text" id="celular" name="celular" value="${fieldValue(bean:alunoInstance,field:'celular')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cre">Cre:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'cre','errors')}">
                                    <input type="text" id="cre" name="cre" value="${fieldValue(bean:alunoInstance,field:'cre')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="deficiencias">Deficiencias:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'deficiencias','errors')}">
                                    <input type="text" id="deficiencias" name="deficiencias" value="${fieldValue(bean:alunoInstance,field:'deficiencias')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dataDeNascimento">Data De Nascimento:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'dataDeNascimento','errors')}">
                                    <g:datePicker name="dataDeNascimento" value="${alunoInstance?.dataDeNascimento}" ></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email">Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'email','errors')}">
                                    <input type="text" id="email" name="email" value="${fieldValue(bean:alunoInstance,field:'email')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="necessitaAdaptacao">Necessita Adaptacao:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'necessitaAdaptacao','errors')}">
                                    <g:checkBox name="necessitaAdaptacao" value="${alunoInstance?.necessitaAdaptacao}" ></g:checkBox>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nome">Nome:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:alunoInstance,field:'nome','errors')}">
                                    <input type="text" id="nome" name="nome" value="${fieldValue(bean:alunoInstance,field:'nome')}"/>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
